#ifndef DEFER_H
#define DEFER_H

#include <QObject>
#include <functional>

typedef std::function<void ()> DEFER_FUNC;

class Defer
{
public:
    Defer(DEFER_FUNC func);
    ~Defer();

private:
    DEFER_FUNC m_func;

    Q_DISABLE_COPY(Defer)
};

#endif // DEFER_H
